#!/bin/bash
#
for old_name in $(find /tmp/test -name "*.txt" | awk -F/ '{print $4}'| awk -F. '{print $1}');do
#	echo $old_name
	new_name=${old_name}_$(date +%Y_%m_%d).txt
	echo $new_name
#	mv $oldname 
#	new_name=${old_name/txt/$(date +%Y_%m_%d).txt}
#    mv $old_name $new_name
done

